﻿using Microsoft.Extensions.Configuration;

namespace MiniFox.Mail.Configurations
{
    /// <summary>
    /// 
    /// </summary>
    public class CopySendSetting
    {
        /// <summary>
        /// 
        /// </summary>
        [ConfigurationKeyName("account")]
        public string Account
        {
            get;
            set;
        }

        /// <summary>
        /// 
        /// </summary>
        [ConfigurationKeyName("blind")]
        public bool Blind
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return this.Account;
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="copySendSetting"></param>
        /// <returns></returns>
        public static implicit operator string(CopySendSetting copySendSetting)
        {
            if (copySendSetting == null)
                return null;
            return copySendSetting.ToString();
        }
    }
}
